package ar.com.photo_admin.taglibs

import org.codehaus.groovy.grails.commons.GrailsApplication;

class ConfigurationTagLib {

	GrailsApplication grailsApplication;
	
	def isPreviewEnabled = { attrs, body ->		
						
		if (grailsApplication.config.upload.preview.enabled) {
			out << body()
		}
	}
	
}
